package com.woniu.postbar.service.impl;



import com.woniu.common.entity.Result;
import com.woniu.postbar.entity.vo.UserPostVO;
import com.woniu.postbar.mapper.UserPostMapper;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.woniu.postbar.pojo.PostCollect;
import com.woniu.postbar.pojo.UserPost;
import com.woniu.postbar.service.IUserPostService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Date;
import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author wu
 * @since 2023-05-20
 */
@Service
public class UserPostServiceImpl extends ServiceImpl<UserPostMapper, UserPost> implements IUserPostService {

    @Autowired
    private UserPostMapper userPostMapper;

    @Override
    public List<UserPostVO> listAnnouncement(String title) {
        return userPostMapper.listAnnouncement(title);
    }

    @Override
    public boolean addPost(UserPost userPost) {
        return userPostMapper.addPost(userPost);
    }

    @Override
    public List<UserPost> userTimeCategorize() {
        return userPostMapper.userTimeCategorize();
    }

    @Override
    public List<UserPost> userCommentCategorize() {
        return userPostMapper.userCommentCategorize();
    }


}
